package com.zxl.common.model.bo.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zxw
 * @date 2023/4/1
 */
@Data
public class BookOrderApply {
    @ApiModelProperty("微信头像")
    private String avatarUrl;

    @ApiModelProperty("微信昵称")
    private String nickName;

    @ApiModelProperty("公司名称")
    @NotBlank(message = "公司名称不能为空")
    private String companyName;

    @ApiModelProperty("联系人")
    @NotBlank(message = "联系人不能为空")
    private String contacts;

    @ApiModelProperty("联系人电话")
    @NotBlank(message = "联系人电话不能为空")
    @Length(min = 11, max = 11, message = "手机号只能为11位")
    private String contactPhone;

    @ApiModelProperty("会员id")
    @NotNull(message = "会员id不能为空")
    private Integer memberId;
}

